class RemoveCommentsPlugin {
  constructor() {
    // super();
  }
  apply(compiler) {
    compiler.hooks.emit.tap("RemoveCommentsPlugin", compilation => {
      // compilation ==> 此次打包的上下文
      for (const name in compilation.assets) {
        console.log(name);
      }
    })
  }
}